<?php $this->load->view('home/layout/header') ?>
<div class="newindex widthMax">
    <div class="topApp am-cf">
        <i class="iconfont">&times;</i>
        <a href="<?php echo $this->config->www_base_url.'wap/scenic/wap_index/wap_download';?>">下载APP</a>
    </div>
    <?php if ( count($advert) > 0 ): ?>
        <div class="lunbo am-slider am-slider-default" data-am-flexslider id="demo-slider-0">
            <!-- <div class="search-df">
                <a href="<?php echo site_url('home/home/search');?>">
                    <i class="iconfont">&#xe65f;</i>
                    <span>搜索</span>
                </a>
            </div> -->
            <div class="search" data-am-sticky>
                <a href="javascript:;" class="logo"><i class="iconfont">&#xe683;</i></a>
                <a href="<?php echo site_url('home/home/search');?>">
                    <div class="search-box">请输入搜索关键词</div>
                    <i class="iconfont icon-search">&#xe65f;</i>
                </a>
                <?php if (empty($this->uid)): ?>
                    <a href="<?php echo site_url('login/login/index');?>" class="ben-login">登录</a>
                <?php else: ?>
                    <a href="javascript:;" class="ben-login"></a>
                <?php endif ?>
            </div>
            <ul class="am-slides">
                <?php foreach ($advert as $val):?>
                <li>
                    <a href="<?php echo $val->openvar;?>">
                        <img src="<?php echo $this->config->show_image_url($val->picture)?>" />
                    </a>
                </li>
                <?php endforeach;?>
            </ul>
        </div>
    <?php endif ?>
    <div class="newindex-nav">
        <ul class="am-cf">
            <li>
                <a href="<?php echo site_url('scenic/home/index');?>">
                    <div class="flex flex-align-center flex-pack-center">
                        <i class="iconfont icon_jq">&#xe679;</i>
                        <p>景区门票</p>
                    </div>
                </a>
            </li>
            <li>
                <a href="<?php echo $this->config->jiudian_url.'m/home/grid.html';?>">
                    <div class="flex flex-align-center flex-pack-center">
                        <i class="iconfont icon_jd">&#xe67c;</i>
                        <p>酒店住宿</p>
                    </div>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('tourism/tourism');?>">
                    <div class="flex flex-align-center flex-pack-center">
                        <i class="iconfont icon_gw">&#xe677;</i>
                        <p>商城购物</p>
                    </div>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('line/account/grid');?>">
                    <div class="flex flex-align-center flex-pack-center">
                        <i class="iconfont icon_dj">&#xe676;</i>
                        <p>旅游度假</p>
                    </div>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('tourism/exotic/index/' . $province_id)?>">
                    <div class="flex flex-align-center flex-pack-center">
                        <i class="iconfont icon_tc">&#xe67e;</i>
                        <p>旅游特产</p>
                    </div>
                </a>
            </li>
            <li>
                <a href="<?php echo $this->config->zzdy_url . 'webapp/commerce/commerceIndex';?>">
                    <div class="flex flex-align-center flex-pack-center">
                        <i class="iconfont icon_sh">&#xe678;</i>
                        <p>商会联盟</p>
                    </div>
                </a>
            </li>
            <!-- <li>
                <a href="<?php echo $this->config->zzdy_url . 'zzdy/zzdy/index';?>">
                    <i class="iconfont icon_gc">&#xe67d;</i>
                    <p>1广场</p>
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('home/home/lottery');?>">
                    <i class="iconfont icon_cj">&#xe659;</i>
                    <p>幸运抽奖</p>
                </a>
            </li> -->
        </ul>
    </div>
    <div class="newindex-notice am-cf">
        <div class="notice-title"><img src="/skins/home/images/notice.png"></div>
        <div class="notice-list">
            <ul class="am-cf notice" id="notice">
             <?php if ( count($news_content) >0 ): ?>
                    <?php foreach ($news_content as $key => $val ): ?>
                        <li class="">
                            <a href="<?php echo site_url('home/home/notice');?>" class="flex">
                                <p class="flex-1"><?php echo $val->title;?></p><span class="icon">>>></span>
                                <?php //echo trim(strip_tags($val->content));?>
                            </a>
                           </li>
                    <?php endforeach ?>
                <?php endif ?>
            </ul>
        </div>
    </div>
    <div class="index-area">
        <div class="index-area-tit"><p>热门活动</p></div>
        <ul class="flex">
            <li class="weekly">
                <a href="<?php echo $this->config->sales_url . 'm/weeksales/grid.html';?>">
                    <div class="li-text">
                        <h4>每周特惠</h4>
                        <p>天天享特价</p>
                    </div>
                    <!-- <img src="/skins/home/images/th.png"> -->
                </a>
            </li>
            <li class="brand-shop">
                <a href="<?php echo site_url('tourism/shop/grid');?>">
                    <div class="li-text">
                        <h4>品牌站点</h4>
                        <p>大牌超值抢</p>
                    </div>
                    <!-- <img src="/skins/home/images/pp.png"> -->
                </a>
            </li>
            <li class="special-offer">
                <a href="<?php echo $this->config->sales_url . 'm/bigsales/scenic';?>">
                    <div class="li-text">
                        <h4>特价专区</h4>
                        <p>集名景惠优品</p>
                    </div>
                    <!-- <img src="/skins/home/images/tj.png"> -->
                </a>
            </li>
        </ul>
    </div>
    <div class="travel-season">
        <div class="box1">
            <a href="<?php echo $this->config->zzdy_url . 'zzdy/autoguide/travelCity';?>" class="city-play">
                <div class="box1-text">
                    <h4>城市1站通</h4>
                    <p>吃住游购娱</p>
                </div>
            </a>
        </div>
        <div class="box1">
            <a href="<?php echo site_url('home/home/freeTravel');?>" class="freetravel">
                <div class="box1-text">
                    <h4>轻松自在游</h4>
                    <p>精选目的地</p>
                </div>
            </a>
        </div>
        <div class="flex box2">
            <a href="<?php echo site_url('home/home/travelAround');?>" class="around">
                <div class="box2-text">
                    <h4>周边游</h4>
                    <p>旅游去哪儿</p>
                </div>
            </a>
            <a href="<?php echo $this->config->jiudian_url . 'm/home/hotel?cityName=' . $region_name . '&cityId=' . $region_id;?>" class="hotel_">
                <div class="box2-text">
                    <h4>约惠住</h4>
                    <p>旅行中的家</p>
                </div>
            </a>
        </div>
    </div>
</div>
<div class="newindex-footer">
    <ul class="am-cf">
        <li>
            <a href="<?php echo site_url();?>">
                <i class="iconfont">&#xe681;</i>
                <p class="navactive">首页</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/discountMall/protection'); ?>">
                <i class="iconfont">&#xe65b;</i>
                <p>消费保障</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('tourism/tourismcart'); ?>">
                <i class="iconfont">&#xe680;</i>
                <p>购物车</p>
            </a>
        </li>
        <li>
            <a href="<?php echo site_url('home/ucenter/index');?>">
                <i class="iconfont">&#xe640;</i>
                <p>我的</p>
            </a>
        </li>
    </ul>
</div>
<?php $this->load->view('home/layout/footer') ?>